﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/List.Master" AutoEventWireup="true" CodeBehind="WFOpinionList.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.WorkflowAcc.WFOpinionList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript" src="../../Scripts/table.js"></script>
    <script language="javascript" type="text/javascript">
        function openOpinion(id) {
            var Url = "WFOpinionEdit.aspx?id="+id;
            window.showModalDialog(Url, window, 'dialogHeight=500px;dialogWidth=580px;help=no;scrollbars=no;status=no');
        }
        function openwindow(url, name) {
            var iWidth = 940; //弹出窗口的宽度;
            var iHeight = window.screen.availHeight - 30; //弹出窗口的高度;
            var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置;
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
            window.open(url, name, 'height=' + iHeight + ',innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=yes,resizeable=no,location=no,status=no');
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="query_area">
        批次：<asp:TextBox ID="txtBatchNo" runat="server" Width="60px" cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isInt();" ></asp:TextBox>&nbsp;&nbsp;
		作业表编号：<asp:TextBox ID="txtCode" runat="server"  cssClass="input2" MaxLength="200"></asp:TextBox>&nbsp;&nbsp;
        <asp:Button runat="server" ID="btnQuery" Text="查 找" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" OnClick="btnQuery_Click" />
    </div>     
     <div class="infoContainer">
    温馨提示：点击作业表编号，可查看作业表详细信息；如要修改审核意见，请点击“编辑”按钮。</a> 
    </div>
       
    <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" id="tGrid">
		<thead>       
            <th align="center"width="40px">批次</th>
            <th align="center">项目名称</th>
            <th align="center">合同名称</th>
            <th align="center"width="120px">作业表编号</th>            
            <th align="center"width="60px">状态</th>
            <th align="center"width="80px">当前流程环节</th>
            <th align="center"width="60px">当前处理人</th>
            <th width="60px">流程意见</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList">
			<ItemTemplate>
				<tr>
					<td><%#  DataBinder.Eval(Container.DataItem,"BatchNo") %></td>
					<td style="text-align:left"><%#  DataBinder.Eval(Container.DataItem,"ProjectName") %></td>
					<td style="text-align:left"><%#  DataBinder.Eval(Container.DataItem,"ContractName") %></td>
					<td>
                        <%# GetLinkUrl(DataBinder.Eval(Container.DataItem, "ID") + "",DataBinder.Eval(Container.DataItem,"Code")+"") %>
                    </td>
                    <td><%# Honestysoft.EnumHelper.EnumInstance.GetEnumDataText(typeof(Honestysoft.Financing.Model.EnumItem.AuditTableStatus),  DataBinder.Eval(Container.DataItem,"BuStatus")+"") %></td>
					
                    <td><%#  DataBinder.Eval(Container.DataItem, "CurrentNode")%></td>
                    <td><%#  DataBinder.Eval(Container.DataItem, "CurrentUser")%></td>
                    <td>
						<a href="#" onclick="openOpinion('<%#  DataBinder.Eval(Container.DataItem,"ID") %>')">编辑</a>
					</td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>
    <div class="paging_area">
     <frameworkwebcontrols:aspnetpager id="AspNetPager1" runat="server"
                    alwaysshow="true" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pageindexboxtype="DropDownList"
                    prevpagetext="上一页" showpageindex="true" showcustominfosection="Right" submitbuttontext="Go"
                    textafterpageindexbox="页" textbeforepageindexbox="转到" currentpagebuttonposition="End"
                    layouttype="Div" custominfotextalign="Right" custominfohtml="共%RecordCount%条记录。第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                    direction="LeftToRight" onpagechanged="AspNetPager1_PageChanged">
                </frameworkwebcontrols:aspnetpager>  
    </div>
    <script language="javascript" type="text/javascript">
        uniteTable(tGrid, 3);
   </script>
</asp:Content>
